* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 25 Apr 2013 16:07:33 +0000 (12:07 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 25 Apr 2013 16:07:33 +0000 (12:07 -0400)
commit71d739839243ac0c357aafc72ca31c6a8a34cf6a
treeb7e08ecf33ea3628cdc0b99dcd0b4186a57e7df1
parenteb013e82920d6a4edf55133a47068434a8f7a798
* lisp/progmodes/opascal.el: Use font-lock and syntax-propertize.
(opascal-mode-syntax-table): New var.
(opascal-literal-kind, opascal-is-literal-end)
(opascal-literal-token-at): Rewrite.
(opascal--literal-start-re, opascal-font-lock-keywords)
(opascal--syntax-propertize): New constants.
(opascal-font-lock-defaults): Adjust.
(opascal-mode): Use them.  Set comment-<foo> variables as well.
(delphi-comment-face, opascal-comment-face, delphi-string-face)
(opascal-string-face, delphi-keyword-face, opascal-keyword-face)
(delphi-other-face, opascal-other-face): Remove face variables.
(opascal-save-state): Remove macro.
(opascal-fontifying-progress-step): Remove constant.
(opascal--ignore-changes): Remove var.
(opascal-set-token-property, opascal-parse-next-literal)
(opascal-is-stable-literal, opascal-complete-literal)
(opascal-is-literal-start, opascal-face-of)
(opascal-parse-region, opascal-parse-region-until-stable)
(opascal-fontify-region, opascal-after-change)
(opascal-debug-show-is-stable, opascal-debug-unparse-buffer)
(opascal-debug-parse-region, opascal-debug-parse-window)
(opascal-debug-parse-buffer, opascal-debug-fontify-window)
(opascal-debug-fontify-buffer): Remove.
(opascal-debug-mode-map): Adjust accordingly.
lisp/ChangeLog
lisp/progmodes/opascal.el